<template>
    <div class="not_find">
        <section id="not-found">
            <div>
                <ul class="nav">
                    <li><i class="fa fa-angle-double-left"></i> <span @click="$router.go(-2)"> 上 一 页 </span></li>
                    <li><i class="fa fa-home"></i><span @click="$router.replace('/home')"> 主 页 </span></li>
                </ul>
            </div>
            <div id="title" style='font-family: 微软雅黑,serif '>{{ title }}</div>
            <div class="circles">
                <p>{{ errorCode }}<br>
                    <small>{{ errorMsg }}</small>
                </p>
                <span class="circle big"></span>
                <span class="circle med"></span>
                <span class="circle small"></span>
            </div>
        </section>
    </div>
</template>

<script>
    export default {
        name: 'error-page',
        props:["title","errorCode","errorMsg"]
    }
</script>

<style scoped>
    .nav{
        margin-top: 20px;
        display: flex;
        justify-content: left;
    }
    .nav span{
        font-size: 14px;
    }
    .nav li:hover{
        color: #eceae1;
    }
    li{
        padding: 0;
        margin: 0;
        list-style: none;
        cursor: pointer;
    }
    li:nth-child(2){
        margin-left: 14px;
        margin-top: 1px;
    }

    .not_find {
        width:100%;
        height:100%;
        background: rgba(25, 42, 64, 0.58);
        font-family: 'Raleway', sans-serif;
        font-weight:300;
        margin:0;
        padding:0;
        overflow: hidden;
    }

    #title {
        text-align:center;
        font-size:28px;
        margin-top:20px;
        margin-bottom:-120px;
        position:relative;
        color:#eceae1;
    }

    .circles:after {
        content:'';
        display:inline-block;
        width:100%;
        height:104px;
        background:#1a2226;
        position:absolute;
        top:-50px;
        left:0;
        transform:skewY(-4deg);
        -webkit-transform:skewY(-4deg);
    }

    .circles {
        background:#1a2226;
        text-align: center;
        position: relative;
        margin-top:-60px;
        box-shadow:inset -1px -4px 4px rgba(0,0,0,0.2);
    }

    .circles p {
        font-size: 240px;
        color: #eceae1;
        padding-top: 60px;
        position: relative;
        z-index: 9;
        line-height: 100%;
    }

    .circles p small {
        font-size: 40px;
        line-height: 100%;
        vertical-align: top;
    }

    .circles .circle.small {
        width: 140px;
        height: 140px;
        border-radius: 50%;
        background: #c8cfd4;
        position: absolute;
        z-index: 1;
        top: 80px;
        left: 50%;
        animation: 7s smallmove infinite cubic-bezier(1,.22,.71,.98);
        -webkit-animation: 7s smallmove infinite cubic-bezier(1,.22,.71,.98);
        animation-delay: 1.2s;
        -webkit-animation-delay: 1.2s;
    }

    .circles .circle.med {
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: #171718;
        position: absolute;
        z-index: 1;
        top: 0;
        left: 10%;
        animation: 7s medmove infinite cubic-bezier(.32,.04,.15,.75);
        -webkit-animation: 7s medmove infinite cubic-bezier(.32,.04,.15,.75);
        animation-delay: 0.4s;
        -webkit-animation-delay: 0.4s;
    }

    .circles .circle.big {
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: #60696e;
        position: absolute;
        z-index: 1;
        top: 200px;
        right: 0;
        animation: 8s bigmove infinite;
        -webkit-animation: 8s bigmove infinite;
        animation-delay: 3s;
        -webkit-animation-delay: 1s;
    }

    @-webkit-keyframes smallmove {
        0% { top: 10px; left: 45%; opacity: 1; }
        25% { top: 300px; left: 40%; opacity:0.7; }
        50% { top: 240px; left: 55%; opacity:0.4; }
        75% { top: 100px; left: 40%;  opacity:0.6; }
        100% { top: 10px; left: 45%; opacity: 1; }
    }
    @keyframes smallmove {
        0% { top: 10px; left: 45%; opacity: 1; }
        25% { top: 300px; left: 40%; opacity:0.7; }
        50% { top: 240px; left: 55%; opacity:0.4; }
        75% { top: 100px; left: 40%;  opacity:0.6; }
        100% { top: 10px; left: 45%; opacity: 1; }
    }

    @-webkit-keyframes medmove {
        0% { top: 0px; left: 20%; opacity: 1; }
        25% { top: 300px; left: 80%; opacity:0.7; }
        50% { top: 240px; left: 55%; opacity:0.4; }
        75% { top: 100px; left: 40%;  opacity:0.6; }
        100% { top: 0px; left: 20%; opacity: 1; }
    }

    @keyframes medmove {
        0% { top: 0px; left: 20%; opacity: 1; }
        25% { top: 300px; left: 80%; opacity:0.7; }
        50% { top: 240px; left: 55%; opacity:0.4; }
        75% { top: 100px; left: 40%;  opacity:0.6; }
        100% { top: 0px; left: 20%; opacity: 1; }
    }

    @-webkit-keyframes bigmove {
        0% { top: 0px; right: 4%; opacity: 0.5; }
        25% { top: 100px; right: 40%; opacity:0.4; }
        50% { top: 240px; right: 45%; opacity:0.8; }
        75% { top: 100px; right: 35%;  opacity:0.6; }
        100% { top: 0px; right: 4%; opacity: 0.5; }
    }
    @keyframes bigmove {
        0% { top: 0px; right: 4%; opacity: 0.5; }
        25% { top: 100px; right: 40%; opacity:0.4; }
        50% { top: 240px; right: 45%; opacity:0.8; }
        75% { top: 100px; right: 35%;  opacity:0.6; }
        100% { top: 0px; right: 4%; opacity: 0.5; }
    }
</style>